import Vue from 'vue'
import App from './App.vue'
import Vant from 'vant';
import 'vant/lib/index.css';
import moment from "moment"
import {serverURL} from '../src/utils/tools'
import router from './router'
import "./assets/main.scss"
Vue.use(Vant);
Vue.prototype.$eventBus=new Vue()
Vue.config.productionTip = false
Vue.filter("dalImg", (url) => {
  if (url) {
    if (url.startsWith("http")) {
      return url;
    }
    return serverURL + url;
  }
  return require("./assets/images/11.jpg");
});
Vue.filter("formatDate", (date) => moment(date).format("YYYY-MM-DD HH:mm:ss"));
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
